

//加载轮播图
function getSwiperImg(){

var arr =[{
    "id": 1,
    "url": "",
    "img": "../../images/a.jpg"
  },
  {
    "id": 2,
    "url": "",
    "img": "../../images/b.jpg"
  },
  {
    "id": 3,
    "url": "",
    "img": "../../images/a.jpg"
  },
  {
    "id": 4,
    "url": "",
    "img": "../../images/b.jpg"
  },
  {
    "id": 5,
    "url": "",
    "img": "../../images/a.jpg"
  }
  ]
  return arr
}

//加载商品
function getCommodityData() {
  var arr = [{
    id: 11,
    img:"../../static/images/01.jpg",
    title: "新疆特产薄皮核桃5斤实惠装新货散装生核桃薄壳孕妇坚果2500g包邮",
    price:" 20.00"
  },
  {
    id: 22,
    img: "../../images/001.jpg",
    title: "电脑",
    price: " 20.00"
  },
  {
    id: 23,
    img: "../../images/001.jpg",
    title: "电脑",
    price: " 20.00"
  },
  {
    id: 41,
    img: "../../images/001.jpg",
    title: "电脑",
    price: "20.00"
  },
  {
    id: 42,
    img: "../../images/001.jpg",
    title: "电脑",
    price: "20.00"
  },
  {
    id: 31,
    img: "../../images/001.jpg",
    title: "电脑",
    price: "20.00"
  },
  {
    id: 32,
    img: "../../images/001.jpg",
    title: "电脑",
    price: "20.00"
  },
  {
    id: 33,
    img: "../../images/001.jpg",
    title: "电脑",
    price: "20.00"
  },
  ]
  return arr
}

//接口
module.exports = {
  getCommodityData: getCommodityData,
  getSwiperImg: getSwiperImg,
}